import request from '@/utils/request'

export function getLessons(data){
    return request({
        url:'/api/lesson/getLessons',
        method:"post",
        data
    })
}

export function edit(data){
    return request({
        url:'/api/lesson/edit',
        method:"post",
        data
    })
}

export function insert(data){
    return request({
        url:'/api/lesson/insert',
        method:"post",
        data
    })
}

export function change(data){
    return request({
        url:'/api/lesson/change',
        method:"post",
        data
    })
}

export function getChapter(data){
    return request({
        url:'/api/chapter/getChapter',
        method:"post",
        data
    })
}

export function getLesson(data){
    return request({
        url:'/api/lesson/getLesson',
        method:"post",
        data
    })
}

export function getOne(data){
    return request({
        url:'/api/chapter/getOne',
        method:"post",
        data
    })
}

export function saveVideo(data){
    return request({
        url:'/api/file/saveVideo',
        method:"post",
        data
    })
}

export function insertVideo(data){
    return request({
        url:'/api/file/insert',
        method:"post",
        data
    })
}

export function getChapterFile(data){
    return request({
        url:'/api/file/getChapterFile',
        method:"post",
        data
    })
}

export function fileDownload(data){
    return request({
        url:'/api/file/download',
        method:"post",
        data
    })
}

export function insertChapter(data){
    return request({
        url:'/api/chapter/insert',
        method:"post",
        data
    })
}

export function getChapterDown(data){
    return request({
        url:'/api/chapter/getChapterDown',
        method:"post",
        data
    })
}